editCreatorAgreement
Edit Creator Agreement
TODO
/api/acp/v2/creatoragreement/edit
Usage and SDK Samples
curl -X GET\
\
-H "Accept: application/json"\
"https://www.floatplane.com/api/acp/v2/creatoragreement/edit"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.ACPCreatorAgreementV2Api;
import java.io.File;
import java.util.*;
public class ACPCreatorAgreementV2ApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: CookieAuth
ApiKeyAuth CookieAuth = (ApiKeyAuth) defaultClient.getAuthentication("CookieAuth");
CookieAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CookieAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
ACPCreatorAgreementV2Api apiInstance = new ACPCreatorAgreementV2Api();
try {
oas_any_type_not_mapped result = apiInstance.editCreatorAgreement();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ACPCreatorAgreementV2Api#editCreatorAgreement");
e.printStackTrace();
}
}
}
import org.openapitools.client.api.ACPCreatorAgreementV2Api;
public class ACPCreatorAgreementV2ApiExample {
public static void main(String[] args) {
ACPCreatorAgreementV2Api apiInstance = new ACPCreatorAgreementV2Api();
try {
oas_any_type_not_mapped result = apiInstance.editCreatorAgreement();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ACPCreatorAgreementV2Api#editCreatorAgreement");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: CookieAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"sails.sid"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"sails.sid"];
// Create an instance of the API class
ACPCreatorAgreementV2Api *apiInstance = [[ACPCreatorAgreementV2Api alloc] init];
// Edit Creator Agreement
[apiInstance editCreatorAgreementWithCompletionHandler:
^(oas_any_type_not_mapped output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var FloatplaneApi = require('floatplane_api');
var defaultClient = FloatplaneApi.ApiClient.instance;
// Configure API key authorization: CookieAuth
var CookieAuth = defaultClient.authentications['CookieAuth'];
CookieAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//CookieAuth.apiKeyPrefix['sails.sid'] = "Token";
// Create an instance of the API class
var api = new FloatplaneApi.ACPCreatorAgreementV2Api()
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.editCreatorAgreement(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class editCreatorAgreementExample
{
public void main()
{
// Configure API key authorization: CookieAuth
Configuration.Default.ApiKey.Add("sails.sid", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("sails.sid", "Bearer");
// Create an instance of the API class
var apiInstance = new ACPCreatorAgreementV2Api();
try {
// Edit Creator Agreement
oas_any_type_not_mapped result = apiInstance.editCreatorAgreement();
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling ACPCreatorAgreementV2Api.editCreatorAgreement: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: CookieAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('sails.sid', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('sails.sid', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\ACPCreatorAgreementV2Api();
try {
$result = $api_instance->editCreatorAgreement();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling ACPCreatorAgreementV2Api->editCreatorAgreement: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::ACPCreatorAgreementV2Api;
# Configure API key authorization: CookieAuth
$WWW::OPenAPIClient::Configuration::api_key->{'sails.sid'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'sails.sid'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::ACPCreatorAgreementV2Api->new();
eval {
my $result = $api_instance->editCreatorAgreement();
print Dumper($result);
};
if ($@) {
warn "Exception when calling ACPCreatorAgreementV2Api->editCreatorAgreement: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: CookieAuth
openapi_client.configuration.api_key['sails.sid'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['sails.sid'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.ACPCreatorAgreementV2Api()
try:
# Edit Creator Agreement
api_response = api_instance.edit_creator_agreement()
pprint(api_response)
except ApiException as e:
print("Exception when calling ACPCreatorAgreementV2Api->editCreatorAgreement: %s\n" % e)
extern crate ACPCreatorAgreementV2Api;
pub fn main() {
let mut context = ACPCreatorAgreementV2Api::Context::default();
let result = client.editCreatorAgreement(&context).wait();
println!("{:?}", result);
}